package com.fantasy.easy.biz.controller;

import com.fantasy.easy.biz.domain.vo.CountVO;
import com.fantasy.easy.biz.domain.vo.DictVO;
import com.fantasy.easy.biz.service.BizBaseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description TODO
 * @Author sdehua-帅德华
 * @Email sdhstart@qq.com
 * @Date 2022/6/25 22:22
 * @Version 1.0
 **/
@RestController
@RequestMapping("/other/data")
public class BizOtherDataController {

    @Resource
    BizBaseService bizBaseService;

    @GetMapping("/count")
    public CountVO getAllCount(){
        return bizBaseService.getCount();
    }

    @RequestMapping("dict")
    public List<DictVO> getDict(){
        return bizBaseService.queryAllNameDict();
    }

}
